(function(e,t){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(o){return t(e,o)}):"object"==typeof module&&module.exports?module.exports=t(e,require("jquery")):e.jQueryBridget=t(e,e.jQuery)})(window,function(e,t){'use strict';function o(o,r,a){function l(e,t,n){var r,l="$()."+o+"(\""+t+"\")";return e.each(function(e,i){var d=a.data(i,o);if(!d)return void s(o+" not initialized. Cannot call methods, i.e. "+l);var p=d[t];if(!p||"_"==t.charAt(0))return void s(l+" is not a valid method");var m=p.apply(d,n);r=void 0===r?m:r}),void 0===r?e:r}function d(e,t){e.each(function(e,i){var n=a.data(i,o);n?(n.option(t),n._init()):(n=new r(i,t),a.data(i,o,n))})}a=a||t||e.jQuery,a&&(!r.prototype.option&&(r.prototype.option=function(e){a.isPlainObject(e)&&(this.options=a.extend(!0,this.options,e))}),a.fn[o]=function(e){if("string"==typeof e){var t=n.call(arguments,1);return l(this,e,t)}return d(this,e),this},i(a))}function i(e){!e||e&&e.bridget||(e.bridget=o)}var n=Array.prototype.slice,r=e.console,s="undefined"==typeof r?function(){}:function(e){r.error(e)};return i(t||e.jQuery),o}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"==typeof window?this:window,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var o=this._events=this._events||{},i=o[e]=o[e]||[];return-1==i.indexOf(t)&&i.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var o=this._onceEvents=this._onceEvents||{},i=o[e]=o[e]||{};return i[t]=!0,this}},t.off=function(e,t){var o=this._events&&this._events[e];if(o&&o.length){var i=o.indexOf(t);return-1!=i&&o.splice(i,1),this}},t.emitEvent=function(e,t){var o=this._events&&this._events[e];if(o&&o.length){o=o.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],r=0;r